package com.nari.system.controller;

import com.nari.common.security.annotation.PreAuthorize;
import com.nari.system.domain.TaxpayerDTO;
import com.nari.system.domain.vo.TaxpayerVo;
import com.nari.system.service.TaxpayerMonitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 纳税主体监控
 */
@RestController
@RequestMapping("/monitor")
public class TaxpayerMonitorController {
    @Autowired
    private TaxpayerMonitorService taxpayerMonitorService;

//    @PreAuthorize(hasPermi = "system:rstlog:list")
    @GetMapping("/list")
    public List<TaxpayerDTO> list(TaxpayerVo taxpayerVo)
    {
        return taxpayerMonitorService.List(taxpayerVo);
    }

}
